-- GENERATED SPELL FOR [Sethekk Shaman] --


function spell0_18326(pUnit, Event) --@Earth Shock,n/a--
pUnit:FullCastSpellOnTarget(15501,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18326', 2265, 1)
end

function spell1_18326(pUnit, Event) --@Earth Shock,n/a--
pUnit:FullCastSpellOnTarget(22885,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18326', 2261, 1)
end

function spell2_18326(pUnit, Event) --@Summon Dark Vortex,n/a--
pUnit:FullCastSpellOnTarget(32663,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18326', 623, 1)
end

function Sorts_18326(pUnit, Event)
local choix_sorts_18326 = math.random(0, 2)
if choix_sorts_18326 == 0 then
pUnit:RegisterEvent('spell0_18326', 1, 1)
end
if choix_sorts_18326 == 1 then
pUnit:RegisterEvent('spell1_18326', 1, 1)
end
if choix_sorts_18326 == 2 then
pUnit:RegisterEvent('spell2_18326', 1, 1)
end
end

function mob18326_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18326', math.random(1500, 3000), 1)
end

function mob18326_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18326_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18326_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18326, 1, 'mob18326_Action')
RegisterUnitEvent(18326, 2, 'mob18326_Leave')
RegisterUnitEvent(18326, 3, 'mob18326_Kill')
RegisterUnitEvent(18326, 4, 'mob18326_Die')
